home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / text_utl / emedit20 / find.fr_ / find.fr
Text File  |  1995-11-19  |  5KB  |  171 lines

  1. VERSION 2.00
  2. Begin Form frmFind 
  3.    Caption         =   "Find"
  4.    ClientHeight    =   2712
  5.    ClientLeft      =   780
  6.    ClientTop       =   2196
  7.    ClientWidth     =   4908
  8.    Height          =   3036
  9.    Left            =   732
  10.    LinkTopic       =   "Form2"
  11.    ScaleHeight     =   2712
  12.    ScaleWidth      =   4908
  13.    Top             =   1920
  14.    Width           =   5004
  15.    Begin ComboBox comboText 
  16.       Height          =   300
  17.       Left            =   1170
  18.       TabIndex        =   0
  19.       Top             =   210
  20.       Width           =   2355
  21.    End
  22.    Begin Frame Frame4 
  23.       Caption         =   "Origin"
  24.       Height          =   975
  25.       Left            =   2640
  26.       TabIndex        =   10
  27.       Top             =   1380
  28.       Width           =   2055
  29.       Begin OptionButton optOrigin 
  30.          Caption         =   "&From Cursor"
  31.          Height          =   285
  32.          Index           =   1
  33.          Left            =   240
  34.          TabIndex        =   12
  35.          Top             =   240
  36.          Value           =   -1  'True
  37.          Width           =   1575
  38.       End
  39.       Begin OptionButton optOrigin 
  40.          Caption         =   "&Entire Scope"
  41.          Height          =   285
  42.          Index           =   0
  43.          Left            =   240
  44.          TabIndex        =   11
  45.          Top             =   600
  46.          Width           =   1575
  47.       End
  48.    End
  49.    Begin Frame Frame1 
  50.       Caption         =   "Direction"
  51.       Height          =   570
  52.       Left            =   150
  53.       TabIndex        =   6
  54.       Top             =   1980
  55.       Width           =   2145
  56.       Begin OptionButton optDirection 
  57.          Caption         =   "&Down"
  58.          Height          =   252
  59.          Index           =   1
  60.          Left            =   960
  61.          TabIndex        =   8
  62.          Top             =   240
  63.          Value           =   -1  'True
  64.          Width           =   852
  65.       End
  66.       Begin OptionButton optDirection 
  67.          Caption         =   "&Up"
  68.          Height          =   252
  69.          Index           =   0
  70.          Left            =   240
  71.          TabIndex        =   7
  72.          Top             =   240
  73.          Width           =   612
  74.       End
  75.    End
  76.    Begin CheckBox chkCase 
  77.       Caption         =   "Match &Case"
  78.       Height          =   375
  79.       Left            =   240
  80.       TabIndex        =   3
  81.       Top             =   960
  82.       Width           =   1455
  83.    End
  84.    Begin CommandButton cmdcancel 
  85.       Cancel          =   -1  'True
  86.       Caption         =   "Cancel"
  87.       Height          =   372
  88.       Left            =   3720
  89.       TabIndex        =   2
  90.       Top             =   600
  91.       Width           =   1092
  92.    End
  93.    Begin CommandButton cmdFind 
  94.       Caption         =   "&OK"
  95.       Default         =   -1  'True
  96.       Height          =   372
  97.       Left            =   3720
  98.       TabIndex        =   1
  99.       Top             =   120
  100.       Width           =   1092
  101.    End
  102.    Begin Frame Frame2 
  103.       Caption         =   "Options"
  104.       Height          =   975
  105.       Left            =   120
  106.       TabIndex        =   9
  107.       Top             =   720
  108.       Width           =   2175
  109.       Begin CheckBox chkWholeWords 
  110.          Caption         =   "&Whole Words Only"
  111.          Height          =   315
  112.          Left            =   120
  113.          TabIndex        =   4
  114.          Top             =   600
  115.          Width           =   1935
  116.       End
  117.    End
  118.    Begin Label Label1 
  119.       Caption         =   "Fi&nd What:"
  120.       Height          =   255
  121.       Index           =   0
  122.       Left            =   120
  123.       TabIndex        =   5
  124.       Top             =   240
  125.       Width           =   975
  126.    End
  127. End
  128. Option Explicit
  129.  
  130. Sub cmdCancel_Click ()
  131. '    gFindString = comboText.Text
  132.     Hide
  133. End Sub
  134.  
  135. Sub cmdFind_Click ()
  136.     Dim FoundIt As Integer
  137.     UpdateComboList comboText, (comboText.Text)  ' add text to combo list if not already exists
  138.     Hide
  139.     FoundIt = FindIt((comboText.Text), (chkCase.Value), (chkWholeWords.Value), (optDirection(0).Value), (optOrigin(0).Value), "", False)
  140. End Sub
  141.  
  142. Sub comboText_Change ()
  143.     If comboText.Text = "" Then
  144.         cmdFind.Enabled = False
  145.     Else
  146.         cmdFind.Enabled = True
  147.     End If
  148. End Sub
  149.  
  150. Sub comboText_Click ()
  151.     If comboText.Text = "" Then
  152.         cmdFind.Enabled = False
  153.     Else
  154.         cmdFind.Enabled = True
  155.     End If
  156. End Sub
  157.  
  158. Sub Form_Activate ()
  159.     comboText.SetFocus
  160. End Sub
  161.  
  162. Sub Form_Load ()
  163.     cmdFind.Enabled = False
  164.     'gFindDirection = 1
  165. End Sub
  166.  
  167. Sub optDirection_Click (index As Integer)
  168.     'gFindDirection = index
  169. End Sub
  170.  
  171.